package com.sh.data.engine.domain.api.service;

import com.sh.data.engine.domain.api.model.domain.*;

import java.util.List;

/**
 * @author : fuchen
 * @date : 2022/2/10 14:10
 */
public interface DataApiOverviewService {

    DataApiOverviewSummaryDomain getOverviewSummary(
        Integer type, Long projectId, String userId, Integer isAuth);

    DataApiApprovalSummaryDomain getApprovalSummary(
        Integer type, Long projectId, String id, Integer isAuth);

    List<DataApiReqTrendSummaryDomain> getReqTrendSummary(
        Integer type, String startDate, String endDate, Long projectId, Integer isAuth, String id);

    List<DataApiTopUserReqSummaryDomain> getTopUserReqSummary(Long projectId);

    List<DataApiTopApiReqSummaryDomain> getTopApiReqSummary(
        Integer type, Long projectId, Integer isAuth, String id);

    List<DataApiTopApiReqSummaryDomain> getTopApiErrReqSummary(
        Integer type, Long projectId, Integer isAuth, String id);

    List<DataApiErrDistributionSummaryDomain> getErrDistributionSummary(
        Integer type, Long projectId, Integer isAuth, String id);
}
